package com.xizi.pojo;


import java.io.Serializable;
import java.util.Objects;

public class Person implements Serializable {
    private String name;
    private Integer age;

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Person)) return false;
        Person person = (Person) o;
        return Objects.equals(name, person.name) &&
                Objects.equals(age, person.age);
    }

//    @Override
//    public int hashCode() {
//        return Objects.hash(name, age);
//    }
}




